/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
  background: linear-gradient(135deg, #f2b155B0, #29dfecB0);
  background-attachment: fixed;
  color: #333;
  line-height: 1.6;
}

/* 布局样式 */
.page {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.home {
  width: 90%;
  max-width: 1408px;
  margin: auto;
}

.root2 {
  display: flex;
  justify-content: space-between;
  margin: 5vh 0;
  gap: 20px;
}

/* 导航样式 */
.header {
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5%;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo h1, .logo h3 {
  color: #f2b155;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.logo h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.logo h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: #555;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a:hover, .nav .active {
  color: #000;
  font-weight: 600;
}

.hc-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 170px;
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hc-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  background: #f2b155B0;
  border-radius: 10px;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hc-nav a:hover {
  background: #f2b155;
  transform: translateY(-3px);
}

.hc-nav i {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* 内容区样式 */
.hc-text {
  display: flex;
  width: calc(100% - 190px);
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  gap: 30px;
}

.hc-text img {
  width: 420px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.hc-text-con {
  flex: 1;
}

.hc-text-con h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.hc-text-con p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 10px;
}

/* 关于页样式 */
.about {
  width: 90%;
  max-width: 1280px;
  background: rgba(255, 255, 255, 0.3);
  margin: 30px auto;
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-section {
  margin-bottom: 40px;
}

.about-title {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-con {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.about-text1 {
  flex: 1;
  min-width: 300px;
}

.about-text1 p {
  color: #555;
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-img {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.about-img img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.about-img img:hover {
  transform: scale(1.05);
}

.about-text2 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.about-text2 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 120px;
  height: 50px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: default;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  gap: 8px;
}

.about-text2 span:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.about-text2 span:nth-child(1) { background-color: #29dfec; }
.about-text2 span:nth-child(2) { background-color: #f2b155; }
.about-text2 span:nth-child(3) { background-color: #db1515; }
.about-text2 span:nth-child(4) { background-color: #f50fb0; }
.about-text2 span:nth-child(5) { background-color: #1c2af8; }

.about-text3 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.about-text3 img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: grayscale(30%);
}

.about-text3 img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* 页脚样式 */
.footer {
  margin-top: 50px;
  padding: 20px;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .root2 {
    flex-direction: column;
  }

  .hc-nav {
    width: 100%;
    flex-direction: row;
    padding: 20px;
  }

  .hc-nav a {
    height: 80px;
  }

  .hc-text {
    width: 100%;
    flex-direction: column;
  }

  .hc-text img {
    width: 100%;
    max-width: 420px;
  }

  .about-con {
    flex-direction: column;
  }

  .about-img {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-text2 {
    justify-content: center;
  }

  .about-text3 {
    justify-content: center;
  }
}
/* 在style.css文件末尾添加以下内容 */

/* 夜间模式样式 */
body.night-mode {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #f0f0f0;
}

.night-mode .header {
  background: rgba(26, 26, 46, 0.8);
}

.night-mode .logo h1,
.night-mode .logo h3 {
  color: #f2b155;
}

.night-mode .nav a {
  color: #b8b8b8;
}

.night-mode .nav a:hover,
.night-mode .nav .active {
  color: #fff;
}

.night-mode .hc-nav,
.night-mode .hc-text,
.night-mode .about {
  background: rgba(26, 26, 46, 0.7);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.night-mode .hc-text-con h3,
.night-mode .about-title,
.night-mode .about-text1 p {
  color: #f0f0f0;
}

.night-mode .hc-text-con p {
  color: #ccc;
}

.night-mode .footer {
  background: rgba(0,0,0,0.3);
}

/* 模式切换按钮样式 */
.mode-toggle {
  background: none;
  border: none;
  color: #555;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 20px;
  transition: all 0.3s ease;
}

.mode-toggle:hover {
  color: #f2b155;
  transform: rotate(20deg);
}

.night-mode .mode-toggle {
  color: #f2b155;
}

/* css/style.css */

/* 社交图标容器 */
.social-icons {
  display: flex;
  justify-content: center; /* 水平居中 */
  gap: 10px; /* 图标之间的间距 */
  margin-top: 10px; /* 与上方生活照的间距 */
}

/* 社交图标 */
.social-icons img {
  width: 40px; /* 图标宽度 */
  height: 40px; /* 图标高度 */
  border-radius: 5px; /* 圆角 */
  transition: transform 0.3s; /* 鼠标悬停时的过渡效果 */
}

/* 鼠标悬停时放大图标 */
.social-icons img:hover {
  transform: scale(1.1);
}

/* 雪花容器 */
.snow-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.9;
  pointer-events: none;
}
